﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" CodeBehind="ManagerNewYear.aspx.cs" Inherits="Qianwei.Web.Admins.ManagerNewYear" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table id="mainpage" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="30">
            </td>
        </tr>
        <tr>
            <td>
                <table id="datatable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="30">
                                        <table>
                                            <tr>
                                                <td>
                                                    排序号：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtSortId" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    图片描述：
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPictureDes" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    上传图片(大)：
                                                </td>
                                                <td>
                                                    <input id="FileUpload" type="file" runat="server" />
                                                    <span style="color: Red; margin-left: 20px;">图片大小-490*169</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    上传图片(小)：
                                                </td>
                                                <td>
                                                    <input id="FileUploadMin" type="file" runat="server" />
                                                    <span style="color: Red; margin-left: 20px;">图片大小-140*93</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="padding-left: 80px; height: 50px;">
                                                    <asp:Button ID="btnUpload" runat="server" CssClass="button" Text="保存" OnClick="FileUpload_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 10px;">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="font42">
                                        <asp:Repeater ID="r_products" runat="server">
                                            <HeaderTemplate>
                                                <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646"
                                                    class="newfont03" style="margin-bottom: 10px;">
                                                    <tr>
                                                        <td height="20" colspan="7" style="text-align: center;" bgcolor="#EEEEEE" class="tablestyle_title">
                                                            月饼
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            排序号
                                                        </td>
                                                        <td bgcolor="#EEEEEE">
                                                            图片预览(大)
                                                        </td>
                                                        <td height="20" bgcolor="#EEEEEE">
                                                            图片路径(大)
                                                        </td>
                                                        <td bgcolor="#EEEEEE">
                                                            图片预览(小)
                                                        </td>
                                                        <td bgcolor="#EEEEEE">
                                                            图片路径(小)
                                                        </td>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            图片描述
                                                        </td>
                                                        <td align="center" bgcolor="#EEEEEE">
                                                            操作
                                                        </td>
                                                    </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr class="tdtext">
                                                    <td bgcolor="#FFFFFF" align="center">
                                                        <%#DataBinder.Eval(Container.DataItem, "Sort_Id")%>
                                                    </td>
                                                    <td height="20" bgcolor="#FFFFFF">
                                                        <a href="/<%#DataBinder.Eval(Container.DataItem, "Picture_Path")%>" target="_blank"
                                                            style="cursor: pointer; border-width: 0px;">
                                                            <img src='/<%#DataBinder.Eval(Container.DataItem, "Picture_Path")%>' width="150" height="100" />
                                                        </a>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "Picture_Path")%>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <a href="/<%#DataBinder.Eval(Container.DataItem, "Picture_Min_Path")%>" target="_blank"
                                                            style="cursor: pointer; border-width: 0px;">
                                                            <img src='/<%#DataBinder.Eval(Container.DataItem, "Picture_Min_Path")%>' width="80" height="50" />
                                                        </a>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "Picture_Min_Path")%>
                                                    </td>
                                                    <td bgcolor="#FFFFFF">
                                                        <%#DataBinder.Eval(Container.DataItem, "Picture_Desc")%>
                                                    </td>
                                                    <td bgcolor="#FFFFFF" align="center">
                                                        <asp:LinkButton ID="lbtnDel" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Product_Id")%>'
                                                            OnClick="btnDel_Click">删除</asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="loadingmsg" style="width: 100px; height: 18px; top: 0px; display: none;">
        <img src="/images/loadon.gif" />
    </div>
</asp:Content>
